package com.prg.model.base;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Tmenu entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TMENU", schema = "SSHE")
public class Tmenu implements java.io.Serializable {

	// Fields

	private TmenuId id;

	// Constructors

	/** default constructor */
	public Tmenu() {
	}

	/** full constructor */
	public Tmenu(TmenuId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "id", column = @Column(name = "ID", length = 100)),
			@AttributeOverride(name = "pid", column = @Column(name = "PID", length = 100)),
			@AttributeOverride(name = "label", column = @Column(name = "LABEL", length = 100)),
			@AttributeOverride(name = "icon", column = @Column(name = "ICON", length = 100)),
			@AttributeOverride(name = "url", column = @Column(name = "URL", length = 200)) })
	public TmenuId getId() {
		return this.id;
	}

	public void setId(TmenuId id) {
		this.id = id;
	}

}